<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <br action="">添加学员
            姓名：<input type="text" v-model="username"> <br><br>
            性别: 
            <input type="radio" v-model="gender" value="1">男
            <input type="radio" v-model="gender" value="2">女
            <br><br>
            年龄：<input type="text" v-model="age"> <br><br>
            组号：<input type="text"v-model="group"> <br><br>
            期望薪资：<input type="text" v-model="hopemoney"> <br><br>
            就业薪资：<input type="text" v-model="relmoney"> <br><br>
            籍贯<select v-model="city">
                <option value="1">北京</option>
                <option value="2">上海</option>
                <option value="3">成都</option>
                <option value="4">南京</option>
              </select>
              <select v-model="scity">
                <option value="1">北京</option>
                <option value="2">绵阳</option>
                <option value="3">成都</option>
                <option value="4">南京</option>
              </select>
              <select v-model="lcity">
                <option value="1">北京</option>
                <option value="2">上海</option>
                <option value="3">成都</option>
                <option value="4">盐亭</option>
              </select></br>
              <button>取消</button>
              <button @click="fn">确认</button>
        </form>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
      const app = new Vue({
        el: '#app',
        data: {
     username:'哈哈哈',
     isSingle:true,
     gender:2,//男 1：女
     age:18,
     group:7,//1-8组
     city:3,//成都
     scity:2,//绵阳
     lcity:4,//盐亭
     hopemoney:200,
     relmoney:300
        },
        methods: {
          fn(){
            console.log(this.username,this.isSingle,this.gender,this.age,this.group,this.city,this.scity,this.lcity,this.hopemoney,this.relmoney)
          }
        },
      })
    </script>
</body>
</html>